package com.pc.ipushpin.business.service.impl;

import com.pc.ipushpin.business.dao.LabelMapper;
import com.pc.ipushpin.business.dao.StoreMapper;
import com.pc.ipushpin.business.model.Label;
import com.pc.ipushpin.business.model.Store;
import com.pc.ipushpin.business.service.ILabelService;
import com.pc.ipushpin.business.service.IStoreService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("storeService")
public class StoreService implements IStoreService {

    @Resource
    private StoreMapper mapper;

    @Override
    public List<Store> findAllByLabelIds(List labelId) {
        return mapper.findAllByLabelIds(labelId);
    }
}
